package com.wise.service.cms.content.listproductindustry;

import com.wise.summer.v1.cms.content.listproduct.PageListProduct;
import com.wise.summer.v1.cms.content.listproductindustry.PageListProductIndustry;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.summerframework.model.SummerService;
import org.summerframework.model.SummerServiceBean;

/**
 * @author shaoming
 * @date 2019-09-11
 */
@Service
@SummerService
public class PageListProductIndustryService implements SummerServiceBean<PageListProductIndustry> {


	@Override
	public void sum(PageListProductIndustry summer) {
		PageListProduct pageListProduct = new PageListProduct();
		BeanUtils.copyProperties(summer, pageListProduct);
		pageListProduct.setCategoryType(1);
		pageListProduct.sum();
		summer.setSummerResult(pageListProduct.getSummerResult());
	}
}
